
export class TreasureItemModel {
    lvl: number
    star: number
    amounts: number[]
    constructor(opts: any = {}) {
        this.lvl = opts.lvl || 0
        this.star = opts.star || 0
        this.amounts = opts.amounts || []
    }
}

export class TreasureModel {
    lvl: number
    items: number[]
    list: any //id:TreasureItemModel
    constructor(opts: any = {}) {
        this.list = opts.list || {}
        this.items = opts.items || [0, 0, 0, 0, 0, 0, 0, 0]
        this.lvl = opts.lvl || 0
    }
}